﻿using Sprout.Schedule.Interfaces;
using Quartz;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Sprout.Schedule.Jobs
{
    /// <summary>
    /// 写入日志任务
    /// </summary>
    public class LoggerJob : LocalJobBase
    {
        public override async Task Execute()
        {
            Dictionary<string, string> paramsDic = await GetParametersAsync<Dictionary<string, string>>();
            var count = await taskLogService.Value.Insert(int.Parse(paramsDic["PageSize"]));

            await LogAsync($"此次存储日志{count}条");
        }
    }
}
